home *** CD-ROM | disk | FTP | other *** search
/ BBS in a Box 3 / BBS in a box - Trilogy III.iso / Files / Prog / D-G / FutureBASIC 1.0 (ML) / Secs2Date+ Folder / Time⁄Date Read.ME < prev   
Encoding:
Text File  |  1992-10-15  |  565 b   |  26 lines  |  [TEXT/MACA]

  1. Sample Source Code:
  2. © Michael Lininger, Lininger Technology, 1992
  3.  
  4. This sample shows how to grab an image of the FB Equate
  5. TimeDateRec and convert a known date into seconds and
  6. how to convert seconds back into a date.
  7.  
  8. An efficient way to store dates within a database.
  9.  
  10. LOCAL FN's
  11.  
  12. LTRIM$         - Strips Leading Spaces
  13. PadZero$       - Pads a Leading '0' for date formatting
  14. FindDay$       - Returns Day of the Week as TEXT
  15. FindMonth$     - Returns Month as TEXT
  16. DateToString$  - Formats a Date/Time string$
  17.  
  18.  
  19. ToolBox CALL's/FN's
  20.  
  21. CALL SECS2DATE
  22. FN DATE2SECS
  23.  
  24.  
  25.  
  26.